/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package agroalimentaria;

/**
 *
 * @author ddpc
 */
public class Refrigerados extends Productos{
    private int codorg;
    private int temperatura;
    
    Refrigerados(){
        System.out.println("introduce codigo de organizacion:");
        codorg = teclado.nextInt();
        System.out.println("introduce temperatura a mantener el producto:");
        temperatura = teclado.nextInt();
    }

    /**
     * @return the codorg
     */
    public int getCodorg() {
        return codorg;
    }

    /**
     * @param codorg the codorg to set
     */
    public void setCodorg(int codorg) {
        this.codorg = codorg;
    }

    /**
     * @return the temperatura
     */
    public int getTemperatura() {
        return temperatura;
    }

    /**
     * @param temperatura the temperatura to set
     */
    public void setTemperatura(int temperatura) {
        this.temperatura = temperatura;
    }
    public void imprimir(){
        super.imprimir();
        System.out.println("Codigo Organizacion: "+codorg);
        System.out.println("Mantener a Temperatura: "+temperatura);
    }
}
